import request from '@/utils/request'

// 查询子账号日志列表
export function listChildLog(query) {
  return request({
    url: '/app/childLog/list',
    method: 'get',
    params: query
  })
}

// 查询子账号日志数量
export function getChildLogCount(query) {
  return request({
    url: '/app/childLog/count',
    method: 'get',
    params: query
  })
}

// 查询子账号日志详细
export function getChildLog(id) {
  return request({
    url: '/app/childLog/' + id,
    method: 'get'
  })
}

// 新增子账号日志
export function addChildLog(data) {
  return request({
    url: '/app/childLog',
    method: 'post',
    data: data
  })
}

// 修改子账号日志
export function updateChildLog(data) {
  return request({
    url: '/app/childLog',
    method: 'put',
    data: data
  })
}

// 删除子账号日志
export function delChildLog(id) {
  return request({
    url: '/app/childLog/' + id,
    method: 'delete'
  })
}
